<?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar('Right Sidebar') ) : else : ?>
<!--sidebar.php-->
<!--widget start for Right Sidebar-->
	<div id="sidebar">

		<div id="search">
			<?php include (TEMPLATEPATH . '/searchform.php'); ?>
		</div>

		<div id="first_container">

			<ul id="first_container_nav">
				<li><a href="#categories" title="Categories">Categories</a></li>
				<li><a href="#tagcoud" title="Tag Cloud" class="selected">Tag Cloud</a></li>
				<li><a href="#archives" title="Archives">Archives</a></li>
			</ul>

			<div id="categories">
				<ul>
					<?php wp_list_cats('sort_column=name&optioncount=1&hierarchical=0'); ?>
				</ul>
			</div>

			<div id="tagcoud">
				<p><?php wp_tag_cloud(); ?></p>
			</div>
			
			<div id="archives">
				<ul>
					<?php wp_get_archives('type=monthly'); ?>
				</ul>
			</div>

		</div>

		<div id="second_container">

			<ul id="second_container_nav">
				<li><a href="#blogroll" title="Blogroll" class="selected">Blogroll</a></li>
				<li><a href="#misc_links" title="Misc Info">Info</a></li>
			</ul>
			
			<div id="blogroll">
				<ul>
					<?php wp_list_bookmarks('categorize=0&title_li='); ?>
				</ul>
			</div>


			<div id="misc_links">
				<p>Check out <a href="http://twitter.com/mygoodpoints" title="tweets">tweets</p>
			</div>

		</div>

	</div>
<?php endif; ?>
<!--sidebar.php end-->